//
// CLightUser.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.CRGBA;
import org.ryzom.nel.misc.CVector;

public class CLightUser {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CLightUser(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CLightUser obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CLightUser(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setupDirectional(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector direction, float constant, float linear, float quadratic) {
    nel3dJNI.CLightUser_setupDirectional__SWIG_0(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(direction), direction, constant, linear, quadratic);
  }

  public void setupDirectional(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector direction, float constant, float linear) {
    nel3dJNI.CLightUser_setupDirectional__SWIG_1(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(direction), direction, constant, linear);
  }

  public void setupDirectional(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector direction, float constant) {
    nel3dJNI.CLightUser_setupDirectional__SWIG_2(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(direction), direction, constant);
  }

  public void setupDirectional(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector direction) {
    nel3dJNI.CLightUser_setupDirectional__SWIG_3(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(direction), direction);
  }

  public void setupPointLight(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector position, CVector direction, float constant, float linear, float quadratic) {
    nel3dJNI.CLightUser_setupPointLight__SWIG_0(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(position), position, CVector.getCPtr(direction), direction, constant, linear, quadratic);
  }

  public void setupPointLight(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector position, CVector direction, float constant, float linear) {
    nel3dJNI.CLightUser_setupPointLight__SWIG_1(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(position), position, CVector.getCPtr(direction), direction, constant, linear);
  }

  public void setupPointLight(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector position, CVector direction, float constant) {
    nel3dJNI.CLightUser_setupPointLight__SWIG_2(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(position), position, CVector.getCPtr(direction), direction, constant);
  }

  public void setupPointLight(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector position, CVector direction) {
    nel3dJNI.CLightUser_setupPointLight__SWIG_3(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(position), position, CVector.getCPtr(direction), direction);
  }

  public void setupSpotLight(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector position, CVector direction, float exponent, float cutoff, float constant, float linear, float quadratic) {
    nel3dJNI.CLightUser_setupSpotLight__SWIG_0(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(position), position, CVector.getCPtr(direction), direction, exponent, cutoff, constant, linear, quadratic);
  }

  public void setupSpotLight(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector position, CVector direction, float exponent, float cutoff, float constant, float linear) {
    nel3dJNI.CLightUser_setupSpotLight__SWIG_1(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(position), position, CVector.getCPtr(direction), direction, exponent, cutoff, constant, linear);
  }

  public void setupSpotLight(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector position, CVector direction, float exponent, float cutoff, float constant) {
    nel3dJNI.CLightUser_setupSpotLight__SWIG_2(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(position), position, CVector.getCPtr(direction), direction, exponent, cutoff, constant);
  }

  public void setupSpotLight(CRGBA ambiant, CRGBA diffuse, CRGBA specular, CVector position, CVector direction, float exponent, float cutoff) {
    nel3dJNI.CLightUser_setupSpotLight__SWIG_3(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant, CRGBA.getCPtr(diffuse), diffuse, CRGBA.getCPtr(specular), specular, CVector.getCPtr(position), position, CVector.getCPtr(direction), direction, exponent, cutoff);
  }

  public void setupAttenuation(float farAttenuationBegin, float farAttenuationEnd) {
    nel3dJNI.CLightUser_setupAttenuation(swigCPtr, this, farAttenuationBegin, farAttenuationEnd);
  }

  public void setNoAttenuation() {
    nel3dJNI.CLightUser_setNoAttenuation(swigCPtr, this);
  }

  public void setupSpotExponent(float hotSpotAngle) {
    nel3dJNI.CLightUser_setupSpotExponent(swigCPtr, this, hotSpotAngle);
  }

  public void setMode(SWIGTYPE_p_ULight__TLightMode mode) {
    nel3dJNI.CLightUser_setMode(swigCPtr, this, SWIGTYPE_p_ULight__TLightMode.getCPtr(mode));
  }

  public void setAmbiant(CRGBA ambiant) {
    nel3dJNI.CLightUser_setAmbiant(swigCPtr, this, CRGBA.getCPtr(ambiant), ambiant);
  }

  public void setDiffuse(CRGBA diffuse) {
    nel3dJNI.CLightUser_setDiffuse(swigCPtr, this, CRGBA.getCPtr(diffuse), diffuse);
  }

  public void setSpecular(CRGBA specular) {
    nel3dJNI.CLightUser_setSpecular(swigCPtr, this, CRGBA.getCPtr(specular), specular);
  }

  public void setPosition(CVector position) {
    nel3dJNI.CLightUser_setPosition(swigCPtr, this, CVector.getCPtr(position), position);
  }

  public void setDirection(CVector direction) {
    nel3dJNI.CLightUser_setDirection(swigCPtr, this, CVector.getCPtr(direction), direction);
  }

  public void setExponent(float exponent) {
    nel3dJNI.CLightUser_setExponent(swigCPtr, this, exponent);
  }

  public void setCutoff(float cutoff) {
    nel3dJNI.CLightUser_setCutoff(swigCPtr, this, cutoff);
  }

  public void setConstantAttenuation(float constant) {
    nel3dJNI.CLightUser_setConstantAttenuation(swigCPtr, this, constant);
  }

  public void setLinearAttenuation(float linear) {
    nel3dJNI.CLightUser_setLinearAttenuation(swigCPtr, this, linear);
  }

  public void setQuadraticAttenuation(float quadratic) {
    nel3dJNI.CLightUser_setQuadraticAttenuation(swigCPtr, this, quadratic);
  }

  public SWIGTYPE_p_ULight__TLightMode getMode() {
    return new SWIGTYPE_p_ULight__TLightMode(nel3dJNI.CLightUser_getMode(swigCPtr, this), true);
  }

  public CRGBA getAmbiant() {
    return new CRGBA(nel3dJNI.CLightUser_getAmbiant(swigCPtr, this), true);
  }

  public CRGBA getDiffuse() {
    return new CRGBA(nel3dJNI.CLightUser_getDiffuse(swigCPtr, this), true);
  }

  public CRGBA getSpecular() {
    return new CRGBA(nel3dJNI.CLightUser_getSpecular(swigCPtr, this), true);
  }

  public CVector getPosition() {
    return new CVector(nel3dJNI.CLightUser_getPosition(swigCPtr, this), true);
  }

  public CVector getDirection() {
    return new CVector(nel3dJNI.CLightUser_getDirection(swigCPtr, this), true);
  }

  public float getExponent() {
    return nel3dJNI.CLightUser_getExponent(swigCPtr, this);
  }

  public float getCutoff() {
    return nel3dJNI.CLightUser_getCutoff(swigCPtr, this);
  }

  public float getConstantAttenuation() {
    return nel3dJNI.CLightUser_getConstantAttenuation(swigCPtr, this);
  }

  public float getLinearAttenuation() {
    return nel3dJNI.CLightUser_getLinearAttenuation(swigCPtr, this);
  }

  public float getQuadraticAttenuation() {
    return nel3dJNI.CLightUser_getQuadraticAttenuation(swigCPtr, this);
  }

  public CLightUser() {
    this(nel3dJNI.new_CLightUser(), true);
  }

}
